﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Text;
using WebApiV2.Data.Entity;

namespace WebApiV2.Data
{
    public class Admin678DbContext:DbContext
    {
        public Admin678DbContext()
        {

        }

        protected override  void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            var connectionString= "server=.;database=Admin678;uid=sa;pwd=123456;";
            optionsBuilder.UseSqlServer(connectionString);
        }

        public DbSet<Users> Users { get; set; }

        public DbSet<Roles> Roles { get; set; }

        public DbSet<Logs> Logs { get; set; }
    }
}
